package com.qys.livesMall.shop.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.app.user.model.vo.app.AppUserInfoTeamDetailVo;
import com.qys.livesMall.framework.mapper.QysBaseMapper;
import com.qys.livesMall.shop.modal.dto.shop.ShopSearch;
import com.qys.livesMall.shop.modal.entity.H2ShopBase;
import com.qys.livesMall.shop.modal.vo.ShopStatisticsInfoVo;
import com.qys.livesMall.shop.modal.vo.ShopVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户小店(H2ShopBase)表数据库访问层
 *
 * @author makejava
 * @since 2023-05-26 10:29:37
 */
@Mapper
public interface H2ShopBaseMapper extends QysBaseMapper<H2ShopBase,ShopSearch> {
    Integer getShopCodeMax();


    Long queryShopBaseIdByUserId(Long userId);

    ShopVO queryByShopId(Long shopId);

    Page<ShopStatisticsInfoVo> getShopBaseInfo(@Param("page") Page<ShopStatisticsInfoVo> page,
                                               @Param("shopIds") List<Long> shopIds);

    List<ShopStatisticsInfoVo> getShopInfo(@Param("shopIds") List<Long> shopIds);

    List<AppUserInfoTeamDetailVo> getShopbyids(@Param("page") Page<AppUserInfoTeamDetailVo> page,@Param("list") List<Long> list);

    List<H2ShopBase> getYesterday();
}

